<%@ page language="java" import="java.util.*,java.text.SimpleDateFormat,java.util.Date" contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");//设置日期格式
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'addMessage.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<link href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
	<script src="//cdn.bootcss.com/jquery/2.1.4/jquery.min.js"></script>
	<script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
	<style>
		*{
		  	font-family: "微软雅黑";
		  }
		body{
		  	background-image: url("images/bgcolor.png");
		  	padding:150px 600px 400px 250px;
		}
	</style>
  </head>
  
  <body>
    <form action="addMessageServlet" method="post" style="box-shadow: 0px 0px 50px rgba(0, 0, 0, 0.4); ">
    	<input type="hidden" value="${Id}" name="userId"/>
    	<input type="hidden" value="${type}" name="type"/>
    	<input type="hidden" value="<%=df.format(new Date())%>" name="time"/>
    	<div class="">
		  <div style="width:620px">
		    <div class="input-group">
		      <input type="text" class="form-control" placeholder="输入留言内容" name="message"/>
		      <span class="input-group-btn">
		        <button class="btn btn-default" type="submit">提交</button>
		      </span>
		    </div>
		  </div>
		</div>
	</form>
  </body>
</html>
